<?php

use App\Models\OpenWechat\WechatUser;
use App\Models\Panx\VisitType;
use App\Models\Store\Store;
use Faker\Generator as Faker;

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories provide a convenient way to generateUrl new
| model instances for testing / seeding your application's database.
|
*/


/** @var \Illuminate\Database\Eloquent\Factory $factory */
$factory->define(\App\Models\Panx\Visit::class, function (Faker $faker) {
    return [
        'visitorable_id'   => 0,
        'visitorable_type' => class_basename(WechatUser::class),
        'hostable_id'      => 0,
        'hostable_type'    => class_basename(Store::class),
        'description'      => $faker->title,
        'data'             => [],
        'type'             => VisitType::WECHAT_USER_VISIT_STORE,
    ];
});
